Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Node / ReticulumProjects / MeshChatX.git / files / patches / ol-mapbox-style@13.4.1.patch

Displaying Raw • Download


patches/ol-mapbox-style@13.4.1.patch v4.6.0-rc.4 (421126e8) Text, 950 B

Tc9d1d9diff --git a/src/util.js b/src/util.js
Tc9d1d9index 93d48b4488def00cfa1641341435ea76516d9741..727ad1b3e6e668a8b34c8e544613710184cc9cd1 100644
Tf85149--- a/src/util.js
T7ee787+++ b/src/util.js
Tc9d1d9@@ -329,7 +329,9 @@ export function drawIconHalo(
2 * haloWidth * spriteImageData.pixelRatio + spriteImageData.height,
];
const imageCanvas = createCanvas(imgSize[0], imgSize[1]);
Tf85149- const imageContext = imageCanvas.getContext('2d');
T7ee787+ const imageContext = imageCanvas.getContext('2d', {
T7ee787+ willReadFrequently: true,
T7ee787+ });
imageContext.drawImage(
spriteImage,
spriteImageData.x,
Tc9d1d9@@ -379,7 +381,9 @@ function smoothstep(min, max, value) {
*/
export function drawSDF(image, area, color) {
const imageCanvas = createCanvas(area.width, area.height);
Tf85149- const imageContext = imageCanvas.getContext('2d');
T7ee787+ const imageContext = imageCanvas.getContext('2d', {
T7ee787+ willReadFrequently: true,
T7ee787+ });
imageContext.drawImage(
image,
area.x,


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────